/* 请求函数配置 */
import PROCESS from 'service/apis/process';
import Request from 'service/request';

// 获取流程列表
export async function getProcess(id) {
  return Request({
    url: PROCESS.GET_PROCESS + id + '?ver=' + (new Date()).getTime() ,
    isForm: 0,
  });
}

// 处理流程
export async function approvePro(params) {
  return Request({
    url: PROCESS.APPROVE_PROCESS,
    data: params,
    method: 'POST',
    isForm: 0,
  });
}

// 处理流程
export async function repairPross(params) {
  return Request({
    url: PROCESS.REPAIR_PROCESS,
    data: params,
    method: 'POST',
    isForm: 0,
  });
}
